<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
 * Copyright (C) 2003-2010 Frederico Caldeira Knabben
 *
 * == BEGIN LICENSE ==
 *
 * Licensed under the terms of any of the following licenses at your
 * choice:
 *
 *  - GNU General Public License Version 2 or later (the "GPL")
 *    http://www.gnu.org/licenses/gpl.html
 *
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
 *    http://www.gnu.org/licenses/lgpl.html
 *
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
 *    http://www.mozilla.org/MPL/MPL-1.1.html
 *
 * == END LICENSE ==
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>FCKXHtml Test Page</title>
	<script type="text/javascript">

// Used by fckconfig
var FCK = new Object() ;
FCK.IsDirty = function() { return true ; } ;

	</script>
	<script src="../../../editor/_source/fckconstants.js" type="text/javascript"></script>
	<script src="../../../editor/_source/fckjscoreextensions.js" type="text/javascript"></script>
	<script src="../../../editor/_source/internals/fckbrowserinfo.js" type="text/javascript"></script>
	<script src="../../../editor/_source/internals/fckregexlib.js" type="text/javascript"></script>
	<script src="../../../editor/_source/internals/fcklistslib.js" type="text/javascript"></script>
	<script src="../../../editor/_source/classes/fckiecleanup.js" type="text/javascript"></script>
	<script src="../../../editor/_source/internals/fckconfig.js" type="text/javascript"></script>
	<script src="../../../fckconfig.js" type="text/javascript"></script>
	<script src="../../../editor/_source/internals/fckdomtools.js" type="text/javascript"></script>
	<script src="../../../editor/_source/internals/fcktools.js" type="text/javascript"></script>
	<script src="../../../editor/_source/internals/fckxhtmlentities.js" type="text/javascript"></script>
	<script src="../../../editor/_source/internals/fckcodeformatter.js" type="text/javascript"></script>
	<script src="../../../editor/_source/internals/fckxhtml.js" type="text/javascript"></script>
	<script type="text/javascript">

function LoadScript( url )
{
	document.write( '<script type="text/javascript" src="' + url + '"><\/script>' ) ;
}
var sSuffix = FCKBrowserInfo.IsIE ? 'ie' : 'gecko' ;
LoadScript( '../../../editor/_source/internals/fcktools_' + sSuffix + '.js' ) ;
LoadScript( '../../../editor/_source/internals/fckxhtml_' + sSuffix + '.js' ) ;

	</script>
	<script type="text/javascript">

function GenerateXHTML()
{
	var dTimer = new Date() ;

	var sXHTML = FCKXHtml.GetXHTML( document.getElementById('xSource').contentWindow.document.body, false, document.getElementById('xFormatted').checked ) ;

	document.getElementById('xTimer').innerHTML = 'Finished processing in ' + ( ( ( new Date() ) - dTimer ) / 1000 ) + ' seconds' ;

	document.getElementById( 'xOutput' ).value = sXHTML ;
}

	</script>
</head>
<body>
	<h1>
		FCKXHtml Test Page</h1>
	<p>
		XHTM 1.0 The Extensible HyperText Markup Language (Second Edition):
	</p>
	<iframe id="xSource" src="test1/w3c_xhtml.html" width="100%" height="200" frameborder="1">
	</iframe>
	<p>
		Click the following button to generate the XHTML for the above page:<br />
		<input type="button" value="Generate XHTML" onclick="GenerateXHTML();" />
		&nbsp;&nbsp;&nbsp;&nbsp;<input id="xFormatted" type="checkbox" checked="checked" /> Formatted
		&nbsp;&nbsp;&nbsp;&nbsp;<span id="xTimer"></span>
		<br />
		<textarea id="xOutput" rows="10" cols="80" style="width: 100%; height: 200px;" wrap="off"></textarea>
	</p>
</body>
</html>
